﻿using Shinva.Variables.Interface;
using Shinva.Variables.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shinva.Variables.Type.integer
{
    /// <summary>
    /// Int 是有符号 16 位整数类型，其取值范围是 -32768 到 32767。
    /// </summary>
    public class PlcInt : PlcMemberBase
    {
        public short Value { get; set; }
        public PlcInt()
        {
            Value = 0;
            Name= "Int";
            DataType = DataType.Int;
            SizeInBits = 16;

        }
    }
}
